package org.springframework.data.mybatis.repository.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.springframework.data.repository.config.RepositoryBeanDefinitionParser;

public class MybatisRepositoryNameSpaceHandler extends NamespaceHandlerSupport {

	/**
	 * 初始化
	 */
	public void init() {
		MybatisRepositoryConfigExtension extension = new MybatisRepositoryConfigExtension();
		RepositoryBeanDefinitionParser repositoryBeanDefinitionParser = new MybatisRepositoryBeanDefinitionParser(extension);
		registerBeanDefinitionParser("repositories", repositoryBeanDefinitionParser);// 注册解析器
	}

}